import { IFeidaoAiNodejsComponent } from '@feidao-factory/atom-nodejs/interfaces';
import render from '@feidao-factory/atom-nodejs/render/render';
import p001 from './p001';

export default async function na001(fd: IFeidaoAiNodejsComponent, ...args: any[]) {
	const list = [
		{
			title: '基本通信',
			url: '#',
			details: [{
				title: '客户端通信',
				url: './browser-msg.html'
			}, {
				title: '服务端通信',
				url: './nodejs-msg.html'
			}]
		}, {
			title: 'web用户权限',
			url: './menus.html'
		}, {
			title: '文件导出',
			url: '#',
			details: [{
				title: '页面转pdf',
				url: './export-pdf.pdf?doccode=DD20190103000001'
			}, {
				title: '服务端导出',
				url: './export-excel'
			}]
		}, {
			title: '自定义服务web',
			url: '#'
		}, {
			title: '自定义服务service',
			url: '#'
		}, {
			title: '打包测试',
			url: '#'
		}, {
			title: '微信小程序测试',
			url: '#'
		}, {
			title: '脚本调整',
			url: '#'
		}
	];
	await render(fd.data.node, list, p001, 'p001');
}
